package o;

import android.content.Context;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import com.huawei.appmarket.framework.startevents.bean.SkinResponseBean;
import java.util.List;

public class dhz {
    private Context ˎ;

    static class a implements IServerCallBack {
        private a() {
        }

        public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
            if (!(responseBean instanceof SkinResponseBean)) {
                return;
            }
            if (responseBean.getRtnCode_() == 0 && responseBean.getResponseCode() == 0) {
                new dia(((SkinResponseBean) responseBean).ˎ(), ((dhv) o_cvu).getServiceType_()).start();
                return;
            }
            Logger.ˋ("MainActivityProcessor", "get SkinResource error,rtnCode: " + responseBean.getRtnCode_() + ",responseCode: " + responseBean.getResponseCode());
        }

        public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        }
    }

    public dhz(Context context) {
        this.ˎ = context;
    }

    public void ˋ(int i) {
        ehr.ˏ().ˋ();
    }

    public void ˏ(List<ckm> list, int i, dhx o_dhx) {
        dmq.ˏ.ˋ(new dmr(dmp.CONCURRENT, dmn.NORMAL, new dhy(list, i, o_dhx)));
    }

    public void ˎ(int i) {
        cfw.ˎ(dhv.ॱ(i), new a());
    }
}
